<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>
<%String path=request.getContextPath(); %>
<script>
	function selclasstonext(){
		var node=$("#selclasstree").treegrid("getSelected");
		if(node && node.id){
			if(node.id=='1'){
				alert('请选择一个商品分类');
				return ;
			}
			$w.reloadCurrWin(ctx+"/products/ProductPage@show.page?bean.classid="+node.id);
		}
	}
</script>

<div class="easyui-panel" data-options="doSize:false,border:false" style="margin:5px">
	<div class="ui-formContent" style="padding:5px 20px 20px 20px;">
		<p class="headT"><span></span>选择商品分类</p>
		<div class="borderCls" style="width:500px;">
			<table id="selclasstree" class="easyui-treegrid"
				data-options="rownumbers:false,
				url: '<%=path %>/products/ProductClassPage@loadClassList.page?bean.code=<%=request.getParameter("rootcode")==null?"":request.getParameter("rootcode") %>',
				idField: 'id',
				fitColumns:true,
				treeField: 'name'">
				<thead>
					<tr>
						<th data-options="field:'name',width:fixWidth(1)">分类名称</th>
					</tr>
				</thead>
			</table>
		</div>
		<div style="margin-top:20px;margin-left:20px;">
			<a href="javascript:selclasstonext();" class="easyui-linkbutton marginR16" iconCls="icon_save">下一步，填写商品信息</a>
		</div>
	</div>
	
</div>
	